package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="OPERATOR"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class Operator implements Serializable {

    /** identifier field */
    private String operatorid;

    /** persistent field */
    private String operatorname;

    /** persistent field */
    private String deptcode;

    /** persistent field */
    private String password;

    /** persistent field */
    private String regdate;

    /** persistent field */
    private String lastpassword;

    /** persistent field */
    private int lifecycle;

    /** nullable persistent field */
    private String ip;

    /** persistent field */
    private String stat;

    /** full constructor */
    public Operator(String operatorid, String operatorname, String deptcode, String password, String regdate, String lastpassword, int lifecycle, String ip, String stat) {
        this.operatorid = operatorid;
        this.operatorname = operatorname;
        this.deptcode = deptcode;
        this.password = password;
        this.regdate = regdate;
        this.lastpassword = lastpassword;
        this.lifecycle = lifecycle;
        this.ip = ip;
        this.stat = stat;
    }

    /** default constructor */
    public Operator() {
    }

    /** minimal constructor */
    public Operator(String operatorid, String operatorname, String deptcode, String password, String regdate, String lastpassword, int lifecycle, String stat) {
        this.operatorid = operatorid;
        this.operatorname = operatorname;
        this.deptcode = deptcode;
        this.password = password;
        this.regdate = regdate;
        this.lastpassword = lastpassword;
        this.lifecycle = lifecycle;
        this.stat = stat;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="OPERATORID"
     *         
     */
    public String getOperatorid() {
        return this.operatorid;
    }

    public void setOperatorid(String operatorid) {
        this.operatorid = operatorid;
    }

    /** 
     *            @hibernate.property
     *             column="OPERATORNAME"
     *             length="60"
     *             not-null="true"
     *         
     */
    public String getOperatorname() {
        return this.operatorname;
    }

    public void setOperatorname(String operatorname) {
        this.operatorname = operatorname;
    }

    /** 
     *            @hibernate.property
     *             column="DEPTCODE"
     *             length="9"
     *             not-null="true"
     *         
     */
    public String getDeptcode() {
        return this.deptcode;
    }

    public void setDeptcode(String deptcode) {
        this.deptcode = deptcode;
    }

    /** 
     *            @hibernate.property
     *             column="PASSWORD"
     *             length="32"
     *             not-null="true"
     *         
     */
    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    /** 
     *            @hibernate.property
     *             column="REGDATE"
     *             length="10"
     *             not-null="true"
     *         
     */
    public String getRegdate() {
        return this.regdate;
    }

    public void setRegdate(String regdate) {
        this.regdate = regdate;
    }

    /** 
     *            @hibernate.property
     *             column="LASTPASSWORD"
     *             length="10"
     *             not-null="true"
     *         
     */
    public String getLastpassword() {
        return this.lastpassword;
    }

    public void setLastpassword(String lastpassword) {
        this.lastpassword = lastpassword;
    }

    /** 
     *            @hibernate.property
     *             column="LIFECYCLE"
     *             length="10"
     *             not-null="true"
     *         
     */
    public int getLifecycle() {
        return this.lifecycle;
    }

    public void setLifecycle(int lifecycle) {
        this.lifecycle = lifecycle;
    }

    /** 
     *            @hibernate.property
     *             column="IP"
     *             length="32"
     *         
     */
    public String getIp() {
        return this.ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    /** 
     *            @hibernate.property
     *             column="STAT"
     *             length="10"
     *             not-null="true"
     *         
     */
    public String getStat() {
        return this.stat;
    }

    public void setStat(String stat) {
        this.stat = stat;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("operatorid", getOperatorid())
            .toString();
    }

}
